{% load i18n %}

<div class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
          aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Modal title</h4>
      </div>
      <form action="/project/{{ project_id }}/add-task" method="post" id="add-task-form" role="form">
        <div class="modal-body">
          {% csrf_token %}
          {% for  field in form.visible_fields %}
            <div class="form-group {{ field.name }}">
              {{ field.label_tag }}
              {{ field }}
            </div>
          {% endfor %}
        </div>
        <div class="modal-footer">
          <input type="submit" value="Save" class="btn btn-primary">
        </div>
      </form>
    </div>
  </div>
</div>